
Dragon Warrior I (US) - Updated Command Menu (v1.1)
Author: Pterias (RomHacking.net)

-------------------------------------------------------------------------------
--- Code changes: -------------------------------------------------------------
-------------------------------------------------------------------------------

	Change COMMAND Menu (remove 'STAIRS' and 'TAKE', re-route remaining Menu Items):

7065/B055:	05 -> 04		# menu rows (incl. title), down from 5

		 S  E  A  R  C  H
708C/B07C:	36 28 24 35 26 2B	replace "STAIRS" menu text with "SEARCH"

-------

- in "Check Command Menu Input": change menu item functions to handle new menu item positions
CFC7/CFB7:	4C03E1	JMP E103	select Menu Item $02 (was Stairs), do Search
CFE3/CFD3:	4C11DA	JMP DA11	select Menu Item $03 (was Search), do Spells
CFD5/CFC5:	4C1BDC	JMP DC1B	select Menu Item $04 (was Spells), do Items
CFDC/CFCC:	4C42DC	JMP DC42	select Menu Item $05 (was Items), do Door

-------------------------------------------------------------------------------

	Add 'TAKE' functionality to 'SEARCH':

- Dialog String "$D4": New "found treasure" string
	Modifies string slightly to make room for a needed /Wait switch ($FB).

            PLAYER  _  f i n d s  _  a  _  t r e a s u r e  _  b o x  . /W END
AAB8/AAA8:      F8 5F 0F12170D1C 5F 0A 5F 1D1B0E0A1C1E1B0E 5F 0B1821 47 FB FC

-------

E1EB/E1DB:	4CFAE1	JMP E1FA	after Treasure Chest found and dialog $D4 (above) set,
					JMP straight to DisplayDlg (below)
					right before treasure found routine

E20A/E1FA:	20BDC7	JSR C7BD	display line of text without exiting Dlg,
					then continue with finding item

-------------------------------------------------------------------------------

	Automatically use Stairs when walked on (rewritten from v1.0):

CDC0/CDB0:	2007DA	JSR DA07	call new routine below to check if standing on stairs
CDC3/CDB3:	EA	NOP		

-------

DA16/DA06:	60	RTS		silently return from Stairs routine
					instead of showing "no stairs here" Dlg

- new routine (replacing "no stairs found" text routine):
DA17/DA07:	A5 3C	LDA 3C		load tile type player is standing on and
		85 E0	STA E0		save it for later (automatically re-enters caves otherwise)
		20AFD9	JSR D9AF	check if standing on Stairs, and use them if so.
		A5 E0	LDA E0		otherwise, reload the current tile (not strictly needed)
		60	RTS		return and continue with other map/terrain checks

-------------------------------------------------------------------------------

	Modify Maps to prevent forced, automatic Stair usage (new for v1.1):

- map tiles:
0E92/8E82:	12 -> 21	Charlock Castle 3rd level: move NW 'Stairs Up' tile to the right

0FED/8FDD:	20 -> 22	Mountain Cave 1st level: remove 'Wall' tile near NW 'Stairs Down'


- map exit data:
F4BD/F4AD:	00,00 -> 01,00	Charlock Castle 3rd level: move NW stair entrance coords right 1 sq

-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
